Stripe\StripeTaxForWooCommerce\Stripe\CalculateTax D

Total Complexity 182
Dependencies 14
Dependents 1
Total lines 1,281
Lines of code 699
Logical lines of code 423
Comment lines 430
Methods 39
Properties 9

Methods 39

Method Rating Maintainability Complexity Lines of code
get_customer_details_by_order()
C
36 30 86
get_line_items_by_order()
A
42 10 52
get_wc_rates_array_from_response_for_item()
A
46 10 35
apply_tax_to_cart_shipping_methods()
A
53 8 22
apply_tax_to_order_shipping_methods()
A
53 8 22
get_line_items_by_cart()
S
45 6 44
can_calculate_tax()
S
61 8 12
get_customer_details_address()
S
54 7 20
get_prepared_posted_tax_ids()
S
54 7 18
get_response()
S
57 6 21
calculate_cart_shipping()
S
55 5 19
get_cart_or_order_not_taxable_shipping_total()
S
58 5 15
get_cart_or_order_taxable_shipping_total()
S
58 5 15
get_from_db()
S
51 4 30
get_customer_id_by_post()
S
62 5 10
get_normalized_amount()
S
61 4 13
get_from_object_cache()
S
61 4 12
delete()
S
54 3 24
get_shipping_order_item_tax()
S
55 3 19
get_shipping_cart_item_tax()
S
56 3 17
get_shipping_order_item_raw_tax_data()
S
57 3 16
get_order_tax_exempt()
S
59 3 15
get_from_api_call()
S
63 4 9
convert_tax_ids_for_api()
S
59 3 14
get_customer_details_by_post()
S
64 3 11
__construct()
S
54 2 21
get_denormalized_amount()
S
65 3 10
set_to_db()
S
52 1 30
get_cart_item_discount_amount()
S
69 3 6
get_original_line_item_id()
S
64 3 10
is_expired()
S
71 2 6
get_tax_registration()
S
71 2 6
set_to_object_cache()
S
66 2 8
get_tax_settings()
S
71 2 6
get_taxable_shipping_cost_from_cart_or_order_for_api()
S
62 1 11
calculate_cart_totals()
S
74 1 4
get_order_item_total_amount()
S
79 1 3
get_order_item_discount_amount()
S
78 1 3
get_tax_ids_admin_html()
S
77 1 4